#ifndef DATAPROVIDER_H
#define DATAPROVIDER_H
#include "feactualdataprovider.h"
#include <QObject>

class QTimer;
class FeActualDataService;
class FePluginDataProvider: public QObject, public FeActualDataProvider
{
	Q_OBJECT
public:
	static const FeActualDataId ID_CLOCK;

public:
	FePluginDataProvider(FeActualDataService *service, QObject *parent=0);
	~FePluginDataProvider();
	
	virtual QList<FeActualDataId> dataList() const;

	virtual void start();
	virtual void stop();

	virtual void activateDataPoll(FeActualDataId id);
	virtual void deactivateDataPoll(FeActualDataId id);
	virtual void queryDataUpdate(FeActualDataId id);

private slots:
	void sendTimeUpdate();

private:
	FeActualDataService *service;
	QTimer *timer;
};


#endif